import Main from '@/views/Main'

const systemRouter = {
  path: '/system',
  component: Main,
  redirect: '/system/user',
  name: 'system',
  meta: {
    title: 'system'
  },
  children: [
    {
      path: 'user',
      component: () => import('@/views/system/User'),
      name: 'User',
      meta: { title: 'User' }
    },
    {
      path: 'role',
      component: () => import('@/views/system/Role'),
      name: 'Role',
      meta: { title: 'Role' }
    },
    {
      path: 'menu',
      component: () => import('@/views/system/Menu'),
      name: 'Menu',
      meta: { title: 'Menu' }
    },
    {
      path: 'power',
      component: () => import('@/views/system/Power'),
      name: 'Power',
      meta: { title: 'Power' }
    }
  ]
}
export default systemRouter
